package homework;

public class TestPerson {
    public static void main(String[] args) {

        Person person = new Person();
        person.setName("鹭卓");
        person.setAge(29);
        person.setSex('男');
        System.out.println(person.getInfo());

        Student student = new Student();
        student.setName("王一珩");
        student.setAge(20);
        student.setSex('男');
        student.setScore(99);
        System.out.println(student.getInfo());

        Teacher teacher = new Teacher();
        teacher.setName("蒋敦豪");
        teacher.setAge(20);
        teacher.setSex('男');
        teacher.setSalary(10000);
        System.out.println(teacher.getInfo());
    }
}
